package com.srit.migration.business.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

import com.srit.base.bean.Page;
import com.srit.migration.business.bean.ColTypeRelGroup;
import com.srit.migration.business.dao.ColTypeRelGroupDao;
import com.srit.migration.business.service.ColTypeRelGroupService;

/**
 * @author guan
 * @by serviceImpl.tem
 * 
 */
 @Service
public class ColTypeRelGroupServiceImpl implements ColTypeRelGroupService {
	@Autowired(required = true)
	private ColTypeRelGroupDao colTypeRelGroupDao;

	@Override
	public void save(ColTypeRelGroup colTypeRelGroup) {
		colTypeRelGroupDao.save(colTypeRelGroup);
	}

	@Override
	public void update(ColTypeRelGroup colTypeRelGroup) {
		colTypeRelGroupDao.update(colTypeRelGroup);
	}

	@Override
	public ColTypeRelGroup getById(ColTypeRelGroup colTypeRelGroup) {
		return (ColTypeRelGroup) colTypeRelGroupDao.getById(colTypeRelGroup);
	}

	@Override
	public void delete(ColTypeRelGroup colTypeRelGroup) {
		colTypeRelGroupDao.delete( colTypeRelGroup);
	}

	@Override
	public void page(Page page) {
		colTypeRelGroupDao.page( page);
	}
	
	@Override
	public void batchSave(List<ColTypeRelGroup> colTypeRelGroupList) {
		colTypeRelGroupDao.batchSave(colTypeRelGroupList);

	}

	@Override
	public List list(Page page) {
		return colTypeRelGroupDao.list( page);
	}

}
